package semiproject.models;

public class BookVO {
	// 정의
	private String bkno;
	private String name;
	private String publisher;
	private String writer;
	private String genre;
	private int price;
	private boolean isRent; 
	private String regdate;
	
	
	// 생성자
	public BookVO(String name,String publisher,String writer,String genre,int price) {
		this.name = name;
		this.publisher = publisher;
		this.writer = writer;
		this.genre = genre;
		this.price = price;
	}

	
	//메서드
	public String getBkno() {return bkno;}
	public void setBkno(String bkno) {this.bkno = bkno;}
	public String getName() {return name;}
	public void setName(String name) {this.name = name;}
	public String getPublisher() {return publisher;}
	public void setPublisher(String publisher) {this.publisher = publisher;}
	public String getWriter() {return writer;}
	public void setWriter(String writer) {this.writer = writer;}
	public String getGenre() {return genre;}
	public void setGenre(String genre) {this.genre = genre;}
	public int getPrice() {return price;}
	public void setPrice(int price) {this.price = price;}
	public boolean getIsRent() {return isRent;}
	public void setIsRent(boolean isRent) {this.isRent = isRent;}
	public String getRegdate() {return regdate;}
	public void setRegdate(String regdate) {this.regdate = regdate;}
	
	
	//출력
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(bkno).append("/").append(name)
		.append("/").append(publisher).append("/")
		.append(writer).append("/").append(genre)
		.append("/").append(price).append("/").append(isRent)
		.append("/").append(regdate);
		return sb.toString();
	}
	
}  // public class BookVO 